package dao

import (
	"permange/models"
)
//通过gorm对数据库进行增删改添操作
func Selectleaveemp() ([]models.Leaveemp, error){
	var leaveemp []models.Leaveemp
	err := db.Table("leaveemp").Order("leid ASC").Find(&leaveemp).Error//查询所有数据并按照升序输出
	return leaveemp ,err
}
